<?php

/** @var array $result */
use yii\helpers\ArrayHelper;

?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>中医九型体质特征</title>
    <link href="http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="http://apps.bdimg.com/libs/html5shiv/3.7/html5shiv.min.js"></script>
    <script src="http://apps.bdimg.com/libs/respond.js/1.4.2/respond.js"></script>
    <![endif]-->
</head>
<body>

<div class="container">
    <div class="row">
        <div class="col-md-12">
            <?php foreach ($result as $item): ?>
                <h2><?php echo ArrayHelper::getValue($item, 'title') ?> <?php echo ArrayHelper::getValue($item, 'no') ?></h2>
                <?php foreach (ArrayHelper::getValue($item, 'desc') as $k => $v): ?>
                    <p><strong><?php echo $k ?></strong>：<?php echo $v ?></p>
                <?php endforeach; ?>
            <?php endforeach; ?>
        </div>
    </div>
</div>

<script src="http://apps.bdimg.com/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js"></script>

</body>
</html>
